/*
 * CryptFactory.java
 * CryptFactory is used to generate new Crypt objects.
 *
 * @author dchao, Rumen Kostadinov
 */

package sim;

public class CryptFactory {
  protected static CryptFactory _factory = null;

  public static CryptFactory getFactory() { 
    if (_factory==null)
      _factory = new CryptFactory();
    return _factory;
  }

  public Crypt createDiversityCrypt() {
    return new DiversityCrypt();
  }

  public Crypt createSpaceCrypt() {
    return new SpaceCrypt();
  }

  public Crypt createRealCrypt() {
    return new RealCrypt();
  }

}
